package com.rerun.service;

import java.util.List;

import com.baomidou.mybatisplus.service.IService;
import com.rerun.entity.City;
import com.rerun.entity.District;
import com.rerun.entity.Province;

/**
 * The interface Province service.
 */
public interface ProvinceService  extends IService<Province>{

    /**
     * Gets list city by province id.
     *
     * @param provinceId the province id
     * @return the list city by province id
     */
    List<City> getListCityByProvinceId(String provinceId);

    /**
     * Gets list district by city id.
     *
     * @param cityId the city id
     * @return the list district by city id
     */
    List<District> getListDistrictByCityId(String cityId);
    /**
     * 根据城市名获取其所属地区
     * @param cityName
     * @return
     */
	List<District> getListDistrictByCityName(String cityName);

	List<District> getProvinceListByPname(String provinceName);
}
